package com.sxit.ecwx.service.imp;

public interface Ecwx
{
    /** 成功. */
    public static final byte[] RET_0x00 = "{\"errcode\":0,\"errmsg\":\"success\"}".getBytes();
    /** 失败. */
    public static final byte[] RET_0x01 = "{\"errcode\":1,\"errmsg\":\"failed\"}".getBytes();
    /** 无效的有户. */
    public static final byte[] RET_0x02 = "{\"errcode\":2,\"errmsg\":\"invalid user\"}".getBytes();
    /** 无效的密码. */
    public static final byte[] RET_0x03 = "{\"errcode\":3,\"errmsg\":\"invalid password\"}".getBytes();
    /** 无效的token. */
    public static final byte[] RET_0x04 = "{\"errcode\":4,\"errmsg\":\"invalid token\"}".getBytes();
    
    public static final byte[] RET_0x05 = "{\"errcode\":5,\"errmsg\":\"service code is Closed!\"}".getBytes();

    /** 消息推送应答 非法公众号. */
    public static final byte[] RET_0x06 = "{\"errcode\":6,\"errmsg\":\"invalid platform！\"}".getBytes();
    
    /** 纯文本消息. */
    public static final String MSG_TYPE_TEXT = "text";
    /** 图片消息. */
    public static final String MSG_TYPE_IMAGE = "image";
    /** 语音消息. */
    public static final String MSG_TYPE_VOICE = "voice";
    /** 视频消息. */
    public static final String MSG_TYPE_VIDEO = "video";
    /** 音乐类消息. */
    public static final String MSG_TYPE_MUSIC = "music";
    /** 图文类消息. */
    public static final String MSG_TYPE_NEWS = "news";
    /** 机组排班系统创建群组. */
    public static final String MSG_TYPE_JZPBCG = "jzpbcg";
    /** 机组排班系统机组管理员发送消息. */
    public static final String MSG_TYPE_JZPBGMSG = "jzpbgmsg";
    
    /** 日程消息*/
    public static final String MSG_TYPE_SCHEDULE = "schedule";
    /** 与CORE之间的消息长度, 定长1040个字节. */
    public static final int LEN_CORE_MSG = 1040;

    /** 公众平台向CORE消息请求. */
    public static final int ECWX_CORE_REQ = 0xBEEFBEEC;

    /** CORE对公众平台消息响应. */
    // 群组创建
    // 管理员发群消息
    public static final int ECWX_CORE_RSP = 0xBEEFBEED;

    /** CORE对公众平台消息通知. */
    public static final int ECWX_CORE_NOT = 0xBEEFBEEE;

    /**
     * 公众平台对CORE消息应答. 1、同步公众号需要用到
     * */
    public static final int ECWX_CORE_ANS = 0xBEEFBEEF;

    /**
     * 公众平台下行消息
     */
    public static final int ECWX_CORE_DOWN = 0xBEEFBEAA;  

    /**
     * 公众平台消息推送
     */
    public static final int ECWX_CORE_PUSH = 0xBEEFBEEA;

    /** 与CORE之间的协议头长度. */
    public static final int LEN_CORE_MSG_HEAD = 0x23;

    /**
     * 公众平台上行普通消息应答
     */
    public static final int ECWX_UP_MESSAGE_CORE_ANS = 0xBEEFBEEB;
    
    /**
     * 公众平台对CORE消息
     * */
    public static final int ECWX_CORE_AD = 0xBEEAAAAA;
    
}
